package cn.hd.userService.mapper.user;

import cn.hd.commonService.entity.SysUser;
import cn.hd.commonService.vo.user.UserRoleVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hd
 * @since 2022-06-26
 */
@Mapper
public interface SysUserMapper extends BaseMapper<SysUser> {

    @Select("select max(orderNo) from sys_user")
    public Integer maxOrderNo();

    public IPage<UserRoleVo> getListByPage(@Param("page") Page<UserRoleVo> page, @Param("condition") String condition);

}
